# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bluefog
pkgver=0.0.4
pkgrel=3
groups=('blackarch' 'blackarch-bluetooth')
pkgdesc='A tool that can generate an essentially unlimited number of phantom Bluetooth devices.'
license=('GPL2')
depends=('bluez' 'bluez-libs')
arch=('x86_64' 'aarch64')
source=("ftp://ftp.digifail.com/software/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('7f3693ccbc41387aee8018a79c7e8cfcbd82af286fa6eb820afdb0972bdfffef9342ababa9cdb69112a034110f58dbb6f356fb9ee43f00e24bf10482b21a63fc')

build() {
  cd "$pkgname-$pkgver"

  make
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README ChangeLog
  install -Dm 644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}

